<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html>
<html>
 <head>
  <title>学生表</title>
  <t:base type="jquery,easyui,tools,DatePicker"></t:base>
  <script type="text/javascript">
  //编写自定义JS代码
  </script>
 </head>
 <body>
		<t:formvalid formid="formobj" dialog="true" usePlugin="password" layout="table" action="studentController.do?doUpdate" tiptype="1" >
					<input id="id" name="id" type="hidden" value="${studentPage.id }">
					<input id="createName" name="createName" type="hidden" value="${studentPage.createName }">
					<input id="createBy" name="createBy" type="hidden" value="${studentPage.createBy }">
					<input id="createDate" name="createDate" type="hidden" value="${studentPage.createDate }">
					<input id="updateName" name="updateName" type="hidden" value="${studentPage.updateName }">
					<input id="updateBy" name="updateBy" type="hidden" value="${studentPage.updateBy }">
					<input id="updateDate" name="updateDate" type="hidden" value="${studentPage.updateDate }">
		<table style="" cellpadding="0" cellspacing="1" class="formtable">
					<tr>
						<td align="right">
							<label class="Validform_label">
								学号:
							</label>
						</td>
						<td class="value">
						    <input id="stuNo" name="stuNo" type="text" readonly="readonly"  
						    style="width: 150px" class="inputxt" datatype="*" value='${studentPage.stuNo}'  
						    onkeypress="specialTextValidate()" maxlength="10">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">学号</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								姓名:
							</label>
						</td>
						<td class="value">
						    <input id="stuName" name="stuName" type="text" style="width: 150px"
						     class="inputxt" datatype="*" value='${studentPage.stuName}' 
						      onkeypress="specialTextValidate()" maxlength="80">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">姓名</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								性别:
							</label>
						</td>
						<td class="value">
									<t:dictSelect field="sex" type="radio"
										typeGroupCode="sex" defaultVal="${studentPage.sex}" hasLabel="false"  title="性别"></t:dictSelect>     
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">性别</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								生日:
							</label>
						</td>
						<td class="value">
						     	 <input id="birthday" name="birthday" type="text" style="width: 150px" class="inputxt"  value="<fmt:formatDate pattern='yyyy-MM-dd' value='${studentPage.birthday }'/>">
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">生日</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								专业:
							</label>
						</td>
						<td class="value"> 
	                	     <input id="majorId" name="majorId" type="hidden" value='${studentPage.major.id}' >               
						     <input id="majorName" name="majorName" type="text" value='${studentPage.major.majorName}' style="width: 150px" class="inputxt" readonly="readonly" datatype="*">
						     <t:choose hiddenName="majorId" hiddenid="id" url="dictMajorController.do?goSelect&ids=${studentPage.major.id}" name="majorList"
	                          icon="icon-search" title="选择专业" textname="majorName" isclear="false" isInit="true"></t:choose>
								
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">专业</label> 
						</td>
						 
						<td align="right">
							<label class="Validform_label">
								系别:
							</label>
						</td>
						<td class="value">
	 					     <input id="seriesId" name="seriesId" type="hidden" value='${studentPage.series.id }' >               
						     <input id="seriesName"  type="text" style="width: 150px" class="inputxt" readonly="readonly" datatype="*" value='${studentPage.series.seriesName }'>
						     <t:choose hiddenName="seriesId" hiddenid="id" url="dictSeriesController.do?goSelect" name="seriesList"
	                          icon="icon-search" title="选择系别" textname="seriesName" isclear="false" isInit="true"></t:choose>
								
								<span class="Validform_checktip"></span>
								<label class="Validform_label" style="display: none;">系别</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								班级:
							</label>
						</td>
						<td class="value">
						     <input id="gradeId" name="gradeId" type="hidden"  value='${studentPage.stuClass.id }'>               
						     <input id="className"  type="text" style="width: 150px" class="inputxt" 
						      readonly="readonly" datatype="*"  value="${studentPage.stuClass.className }" >
						     <t:choose hiddenName="gradeId" hiddenid="id" url="dictGradeController.do?goSelect" name="deviceGradeList"
	                          icon="icon-search" title="选择" textname="className" isclear="false" isInit="true"></t:choose>
                          
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">班级</label>
						</td>
						<td align="right">
							<label class="Validform_label">
								组别:
							</label>
						</td>
						<td class="value">
	  					     <input id="groupId" name="groupId" type="hidden" value='${studentPage.stuGroup.id}' >               
						     <input id="groupName"  type="text" style="width: 150px" class="inputxt" readonly="readonly" 
						     	datatype="*" value='${studentPage.stuGroup.groupName}' >
						     <t:choose hiddenName="groupId" hiddenid="id" url="dictGroupController.do?goSelect" name="groupList"
	                          	icon="icon-search" title="选择组别" textname="groupName" isclear="false" isInit="true"></t:choose> 
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">组别</label>
						</td>
					</tr>
					<tr>
						 
						<td align="right">
							<label class="Validform_label">
								一卡通:
							</label>
						</td>
						<td class="value">
						     	 <input id="cardNo" name="cardNo" type="text" style="width: 150px" class="inputxt"  value='${studentPage.cardNo}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">一卡通</label>
						</td>
					</tr>
					<tr>
						<td align="right">
							<label class="Validform_label">
								手机号:
							</label>
						</td>
						<td class="value">
						     	 <input  onkeyup="this.value=this.value.replace(/\D/g,'')" id="cellphone" name="cellphone" type="text" style="width: 150px" class="inputxt"  value='${studentPage.cellphone}'>
							<span class="Validform_checktip"></span>
							<label class="Validform_label" style="display: none;">手机号</label>
						</td>
				<td align="right">
					<label class="Validform_label">
					</label>
				</td>
				<td class="value">
				</td>
			</tr>
			</table>
		</t:formvalid>
 </body>
  <script src = "webpage/com/mengtian_tech/device_mgr/student/student.js"></script>		
<script>
  $(document).ready(function(){
		$("#birthday").attr("class","Wdate").click(function(){WdatePicker({dateFmt:'yyyy-MM-dd'});});
		
	}); 
</script>
